
package com.mego.zbss.activity_fragment;

import com.mego.zbss.R;
import com.mego.zbss.util.Constant;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * 闪屏activity，保证点击桌面应用图标后无延时响应
 */
public class SplashActivity extends Activity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
//                startActivity(SWebViewActivity2.createIntent(SplashActivity.this, "钻豹视商-大陆", Constant.ZBSS_WEBSITE_0));
                startActivity(new Intent(SplashActivity.this, MainActivity.class));
                finish();
            }
        }, 500);
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.fade, R.anim.hold);
    }

}